Skip to main content

Shell

Description

Shell executes a shell script or operating system command on the host machine where the process runs. Use this process entry when your process needs to run batch files (Windows), shell scripts (UNIX/Linux), or any command-line program — for example, invoking a data conversion tool, running a system cleanup script, or triggering an external application. It is platform-agnostic, supports command-line arguments, and uses the operating system's return code to determine success or failure for process branching.

Configurations

Field NameDescription
Process Entry nameSpecify a unique name for the process entry, on the workspace area. A process entry can be placed on the canvas several times; and each instance of the entry must have a unique name.
Insert scriptEnable this checkbox when you want to execute the script in the Script tab instead of executing the Script file name . This is also useful, when you want to execute operating system commands like dir, ls or ipconfig without giving a specific path. This option creates a temporary script in the working directory and executes it.

Note: Variables are resolved within the script when given.

Script file nameThe filename of the shell script to start, should include full path else ${user.dir} is used as path.
Working directorySpecify the directory that will be used as working directory for the shell script. The working directory only becomes active when the shell script starts so "Filename" should still include the full path to the script. When the field is left empty or the working directory is invalid ${user.dir} will be used as working directory.
Specify log fileEnable to specify a separate logging file for the execution of this workflow
Append logfileEnable to append to the logfile as opposed to creating a new one
Name of log fileThe directory and base name of the log file (for example C:\logs)
Extension of the log fileThe filename extension (for example: log or txt)
Include date in filename?Adds the system date to the filename. (_20051231)
Include time in filename?Adds the system time to the filename. (_235959)
LoglevelSpecify the logging level for the execution of the shell.
Copy previous results to arguments?The results from a previous workflow can be sent to the shell script using the "Copy rows to result" step. (as arguments)
Execute once for every input rowThis implements looping. If the previous process entry returns a set of result rows, you can have this shell script executed once for every row found. One row is passed to this script at every execution in combination with the copy previous result to arguments. The values of the corresponding result row can then be found on command line argument $1, $2, ... (%1, %2, %3, ... on Windows)
Arguments tableSpecify the strings to use as arguments for the shell script.